home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / raytrace / radiance / simplerd.lha / simplerad / FinalFTP / Light / rtime.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-05-21  |  1.4 KB  |  32 lines

  1. /**********************************************************************/
  2. /* rtime.h : Timing routines                                          */
  3. /*                                                                    */
  4. /* Copyright (C) 1992, Bernard Kwok                                   */
  5. /* All rights reserved.                                               */
  6. /* Revision 1.0                                                       */
  7. /* May, 1992                                                          */
  8. /**********************************************************************/
  9. #ifndef RTIME_H
  10. #define RTIME_H
  11.  
  12. typedef struct {
  13.   float avg_ray;          /* Average time per ray-intersection test */
  14.   float avg_shaft;        /* Average time per shaft building */
  15.   float avg_ff;           /* Average time per form factor */
  16.   float avg_iter;         /* Average time per iteration */
  17.   float tot_time;         /* Total time for whole thing */
  18.   float cur_time;         /* Current and last time */
  19.   float last_time;    
  20.   float prep_pHBV;        /* Preprocessing time to build polygon HBV */
  21.   float prep_oHBV;        /* Preprocessing time to build object HBV */
  22.   float prep_Model;       /* Preprocessing time to build model */
  23.   float utime, stime;     /* User time and system time */
  24. } Time_Stats;  
  25.  
  26. extern float Cpu_Time();
  27. extern float Elapsed_Time();
  28. extern void Init_Time();
  29. extern void Print_Times();
  30.  
  31. #endif /* RTIME_H */
  32.